package org.csu.petserver.service;

import org.csu.petserver.domain.Item;
import org.csu.petserver.domain.Product;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ItemInfo {
    public List<Item> searchItemInCertainProduct(Product product, String keyword);

    public boolean addItem(Item item, Integer quantity);

    public boolean updateItem(Item item);

    public boolean deleteItem(Item item);

    public List<Item> sortByListPriceInCertainProduct(Product product);

    public List<Item> sortByUnitCostInCertainProduct(Product product);

    public Item getItem(String itemId);

}
